import http from "@/http/index";

export interface loginParamsType {
  account: string;
  password: string;
}



export default class LoginApi {


  static login(params: loginParamsType):Promise<UserType.UserInfo> {
    return http.post("/User/login", params);
  }
  static register(params: any) {
    return http.post("/register", params);
  }
}